<?php
/*
 * Created on 24/12/2011
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

	include("../conexao/conexao.php");
		$conn = conectar();
	
	include("../funcoes/config.php");
	$config = new config();

	$query  = $config -> sql_gecko_venda_deletar;
	$result = mysql_query($query) or die(mysql_error());	
	
	$query2  = str_replace("?","{$_GET['codVenda']}",$config -> sql_gecko_parcelas_deletar);
	$result = mysql_query($query2) or die(mysql_error());
	
	Desconectar($conn);
	
	echo $result;
?>
